package com.dingwen.treasure.core.annotation;

import java.lang.annotation.*;

/**
 * 字典返翻译AOP
 *
 * @author dingwen
 * @date 2022/07/10
 */
@Documented
@Target(value = {ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface Dic {
    /**
     * 字典翻译 code
     *
     * @return {@link String}
     */
    String dicCode() default "";

    /**
     * 字典翻译默认值：当数据库查询翻译值为空时的缺省默认值
     *
     * @return {@link String}
     */
    String dicDefaultValue() default "";
}
